{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/mirkoheinzel/Documents/Publications/Multi-bi/Survey/Survey_staff/JOP/1_submission/RR/CA/Replication/Heinzel_Reinsberg_Siauwijaya_23_JOP_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}25 Oct 2023, 11:46:44

{com}. do "/var/folders/yy/hvkr_fn55z919545kdqvjwxr0000gn/T//SD02876.000000"
{txt}
{com}. 
. * ============================================================================================================ *
. * Understanding Resourcing Trade-offs in International Organizations: Evidence from an Elite Survey Experiment *
. * Authors: Mirko Heinzel, Bernhard Reinsberg & Christian Siauwijaya                                            *
. * Version: 20.10.2023                                                                                          *
. * Stata 16.2                                                                                                   *
. * ===========================================================================================================  *
. 
. 
. ************************
. *Figure 1: IO selection*
. ************************
. 
. use "MOPAN_EM.dta"
{txt}(Contact: bernhard.reinsberg@glasgow.ac.uk)

{com}. twoway (scatter y1 EMLT, mlab(acr)) ,  scheme(plotplainblind) ytitle(Process performance) xtitle(Average earmarking share) legend(off) xline(0.6, lcolor(sky)) yline(0, lcolor(sky))
{res}{txt}
{com}. 
. *****************************
. *Figure 2: statistical power*
. *****************************
. 
. *create "power_combined.dta" file using "Power_calculations.R" file
. use "power_combined.dta"
{txt}(Written by R.              )

{com}. keep n power estimate
{txt}
{com}. tostring power, replace
{txt}power was {res:double} now {res:str2}

{com}. replace power = subinstr(power, ".", "_",.)
{txt}(27 real changes made)

{com}. reshape wide n , i(estimate) j(power, string)
{txt}(note: j = _7 _8 _9)

Data{col 36}long{col 43}->{col 48}wide
{hline 77}
Number of obs.                 {res}      27   {txt}->{res}       9
{txt}Number of variables            {res}       3   {txt}->{res}       4
{txt}j variable (3 values)             {res}power   {txt}->   (dropped)
xij variables:
                                      {res}n   {txt}->   {res}n_7 n_8 n_9
{txt}{hline 77}

{com}. 
. label var n_7 "Power = 0.7"
{txt}
{com}. label var n_8 "Power = 0.8"
{txt}
{com}. label var n_9 "Power = 0.9"
{txt}
{com}. 
. graph twoway  (line n_7 estimate) (line n_8 estimate) (line n_9 estimate, lcolor(gs12)) , yline(6062, lcolor(sky)) scheme(plotplainblind) xlabel(0.22(0.11)1.1)
{res}{txt}
{com}.  
. *****************************
. *Figure 3: conjoint analysis*
. *****************************
. 
. *---------------*
. * Simulate data *
. *---------------*
. 
. * creating dataset with 433 respondents
. 
. clear all
{res}{txt}
{com}. set seed 9999999
{txt}
{com}. set obs 433
{txt}{p}
number of observations (_N)  was 0,
now 433
{p_end}

{com}. gen id=_n
{txt}
{com}. gen IO=1 if id<80
{txt}(354 missing values generated)

{com}. replace IO=2 if missing(IO) & id<130
{txt}(50 real changes made)

{com}. replace IO=3 if missing(IO) & id<191
{txt}(61 real changes made)

{com}. replace IO=4 if missing(IO) & id<236
{txt}(45 real changes made)

{com}. replace IO=5 if missing(IO) & id<325
{txt}(89 real changes made)

{com}. replace IO=6 if missing(IO) 
{txt}(109 real changes made)

{com}. generate random_monadic = runiform()
{txt}
{com}. sort random_monadic
{txt}
{com}. gen group = ceil(4 * _n/_N)
{txt}
{com}. 
. * creating 14 iterations: 7 tasks * 2 profiles 
. 
. // 1st iteration 
. {c -(} 
. 
. generate random_cj1_1 = runiform()
. generate random_cj2_1 = runiform()
. generate random_cj3_1 = runiform()
. generate random_cj4_1 = runiform()
. generate random_cj5_1 = runiform()
. generate random_cj6_1 = runiform()
. 
. sort random_cj1_1
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_1
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_1
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_1
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_1
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_1
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_1 = rnormal(10,8.5)
. generate random_out2_1 = rnormal(10,8.5)
. generate random_out3_1 = rnormal(10,8.5)
. generate random_out4_1 = rnormal(10,8.5)
. generate random_out5_1 = rnormal(10,8.5)
. generate random_out6_1 = rnormal(10,8.5)
. 
. gen grant1_1=random_out1_1/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_1=random_out1_1/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_1=random_out2_1/5+0.31 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_1=random_out2_1/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_1=random_out3_1/5+0.42 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_1=random_out3_1/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_1=random_out4_1/5+0.21 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_1=random_out4_1/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_1=random_out5_1/5+0.13 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_1=random_out5_1/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_1=random_out6_1/5+0.18 if element5==1
{txt}(217 missing values generated)
{com}. replace grant6_1=random_out6_1/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_1=random_out1_1+3.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_1=random_out1_1 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_1=random_out2_1+2.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_1=random_out2_1 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_1=random_out3_1+4.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_1=random_out3_1 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_1=random_out4_1+1.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_1=random_out4_1 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_1=random_out5_1+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_1=random_out5_1 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_1=random_out6_1+2.7 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead6_1=random_out6_1 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead_1=(overhead1_1+overhead2_1+overhead3_1+overhead4_1+overhead5_1+overhead6_1)/6
. replace overhead_1=0 if overhead_1<0
{txt}(0 real changes made)
{com}. gen grant_1=(grant1_1+grant2_1+grant3_1+grant4_1+grant5_1+grant6_1)/6
. replace grant_1=0 if grant_1<0
{txt}(0 real changes made)
{com}. drop overhead1_1 overhead2_1 overhead3_1 overhead4_1 overhead5_1 overhead6_1
. drop grant1_1 grant2_1 grant3_1 grant4_1 grant5_1 grant6_1
. 
. drop random_out1_1
. drop random_cj1_1 random_cj2_1 random_cj3_1 random_cj4_1 random_cj5_1 random_cj6_1
.  
. rename element1 element1_1
{res}{com}. rename element2 element2_1
{res}{com}. rename element3 element3_1
{res}{com}. rename element4 element4_1
{res}{com}. rename element5 element5_1
{res}{com}. rename element6 element6_1
{res}{com}. 
. {c )-}
{txt}
{com}. 
. // 2nd iteration
. {c -(} 
. 
. generate random_cj1_2 = runiform()
. generate random_cj2_2 = runiform()
. generate random_cj3_2 = runiform()
. generate random_cj4_2 = runiform()
. generate random_cj5_2 = runiform()
. generate random_cj6_2 = runiform()
. 
. sort random_cj1_2
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_2
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_2
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_2
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_2
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_2
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_2 = rnormal(10,8.5)
. generate random_out2_2 = rnormal(10,8.5)
. generate random_out3_2 = rnormal(10,8.5)
. generate random_out4_2 = rnormal(10,8.5)
. generate random_out5_2 = rnormal(10,8.5)
. generate random_out6_2 = rnormal(10,8.5)
. 
. gen grant1_2=random_out1_2/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_2=random_out1_2/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_2=random_out2_2/5+0.31 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_2=random_out2_2/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_2=random_out3_2/5+0.42 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_2=random_out3_2/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_2=random_out4_2/5+0.21 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_2=random_out4_2/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_2=random_out5_2/5+0.13 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_2=random_out5_2/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_2=random_out6_2/5+0.22 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_2=random_out6_2/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_2=random_out1_2+3.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_2=random_out1_2 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_2=random_out2_2+2.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_2=random_out2_2 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_2=random_out3_2+4.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_2=random_out3_2 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_2=random_out4_2+1.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_2=random_out4_2 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_2=random_out5_2+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_2=random_out5_2 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_2=random_out6_2+2.2 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_2=random_out6_2 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_2=(overhead1_2+overhead2_2+overhead3_2+overhead4_2+overhead5_2+overhead6_2)/6
. replace overhead_2=0 if overhead_2<0
{txt}(0 real changes made)
{com}. gen grant_2=(grant1_2+grant2_2+grant3_2+grant4_2+grant5_2+grant6_2)/6
. replace grant_2=0 if grant_2<0
{txt}(0 real changes made)
{com}. drop overhead1_2 overhead2_2 overhead3_2 overhead4_2 overhead5_2 overhead6_2
. drop grant1_2 grant2_2 grant3_2 grant4_2 grant5_2
. drop random_out1_2
. drop random_cj1_2 random_cj2_2 random_cj3_2 random_cj4_2 random_cj5_2
. 
. rename element1 element1_2
{res}{com}. rename element2 element2_2
{res}{com}. rename element3 element3_2
{res}{com}. rename element4 element4_2
{res}{com}. rename element5 element5_2
{res}{com}. rename element6 element6_2
{res}{com}. 
. {c )-}
{txt}
{com}. 
. // 3rd iteration
. {c -(} 
. 
. generate random_cj1_3 = runiform()
. generate random_cj2_3 = runiform()
. generate random_cj3_3 = runiform()
. generate random_cj4_3 = runiform()
. generate random_cj5_3 = runiform()
. generate random_cj6_3 = runiform()
. 
. sort random_cj1_3
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_3
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_3
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_3
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_3
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_3
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_3 = rnormal(10,8.5)
. generate random_out2_3 = rnormal(10,8.5)
. generate random_out3_3 = rnormal(10,8.5)
. generate random_out4_3 = rnormal(10,8.5)
. generate random_out5_3 = rnormal(10,8.5)
. generate random_out6_3 = rnormal(10,8.5)
. 
. gen grant1_3=random_out1_3/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_3=random_out1_3/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_3=random_out2_3/5+0.31 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_3=random_out2_3/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_3=random_out3_3/5+0.42 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_3=random_out3_3/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_3=random_out4_3/5+0.21 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_3=random_out4_3/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_3=random_out5_3/5+0.13 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_3=random_out5_3/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_3=random_out6_3/5+0.22 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_3=random_out6_3/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_3=random_out1_3+3.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_3=random_out1_3 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_3=random_out2_3+2.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_3=random_out2_3 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_3=random_out3_3+4.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_3=random_out3_3 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_3=random_out4_3+1.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_3=random_out4_3 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_3=random_out5_3+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_3=random_out5_3 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_3=random_out6_3+0.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_3=random_out6_3 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_3=(overhead1_3+overhead2_3+overhead3_3+overhead4_3+overhead5_3+overhead6_3)/6
. replace overhead_3=0 if overhead_3<0
{txt}(0 real changes made)
{com}. gen grant_3=(grant1_3+grant2_3+grant3_3+grant4_3+grant5_3+grant6_3)/6
. replace grant_3=0 if grant_3<0
{txt}(2 real changes made)
{com}. drop overhead1_3 overhead2_3 overhead3_3 overhead4_3 overhead5_3 overhead6_3
. drop grant1_3 grant2_3 grant3_3 grant4_3 grant5_3 grant6_3
. drop random_out1_3
. drop random_cj1_3 random_cj2_3 random_cj3_3 random_cj4_3 random_cj5_3 random_cj6_3
. 
. rename element1 element1_3
{res}{com}. rename element2 element2_3
{res}{com}. rename element3 element3_3
{res}{com}. rename element4 element4_3
{res}{com}. rename element5 element5_3
{res}{com}. rename element6 element6_3
{res}{com}. {c )-}
{txt}
{com}. 
. // 4th iteration
. {c -(} 
. 
. generate random_cj1_4 = runiform()
. generate random_cj2_4 = runiform()
. generate random_cj3_4 = runiform()
. generate random_cj4_4 = runiform()
. generate random_cj5_4 = runiform()
. generate random_cj6_4 = runiform()
. 
. sort random_cj1_4
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_4
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_4
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_4
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_4
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_4
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_4 = rnormal(10,8.5)
. generate random_out2_4 = rnormal(10,8.5)
. generate random_out3_4 = rnormal(10,8.5)
. generate random_out4_4 = rnormal(10,8.5)
. generate random_out5_4 = rnormal(10,8.5)
. generate random_out6_4 = rnormal(10,8.5)
. 
. gen grant1_4=random_out1_4/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_4=random_out1_4/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_4=random_out2_4/5+0.31 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_4=random_out2_4/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_4=random_out3_4/5+0.42 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_4=random_out3_4/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_4=random_out4_4/5+0.21 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_4=random_out4_4/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_4=random_out5_4/5+0.13 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_4=random_out5_4/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_4=random_out6_4/5+0.13 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_4=random_out6_4/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_4=random_out1_4+3.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_4=random_out1_4 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_4=random_out2_4+2.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_4=random_out2_4 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_4=random_out3_4+4.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_4=random_out3_4 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_4=random_out4_4+1.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_4=random_out4_4 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_4=random_out5_4+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_4=random_out5_4 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_4=random_out6_4+0.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_4=random_out6_4 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_4=(overhead1_4+overhead2_4+overhead3_4+overhead4_4+overhead5_4+overhead6_4)/6
. replace overhead_4=0 if overhead_4<0
{txt}(0 real changes made)
{com}. gen grant_4=(grant1_4+grant2_4+grant3_4+grant4_4+grant5_4+grant6_4)/6
. replace grant_4=0 if grant_4<0
{txt}(0 real changes made)
{com}. drop overhead1_4 overhead2_4 overhead3_4 overhead4_4 overhead5_4 overhead6_4
. drop grant1_4 grant2_4 grant3_4 grant4_4 grant5_4 grant6_4
. drop random_out1_4
. drop random_cj1_4 random_cj2_4 random_cj3_4 random_cj4_4 random_cj5_4 random_cj6_4
. 
. rename element1 element1_4
{res}{com}. rename element2 element2_4
{res}{com}. rename element3 element3_4
{res}{com}. rename element4 element4_4
{res}{com}. rename element5 element5_4
{res}{com}. rename element6 element6_4
{res}{com}. 
. {c )-}
{txt}
{com}. 
. // 5th iteration
. {c -(} 
. 
. generate random_cj1_5 = runiform()
. generate random_cj2_5 = runiform()
. generate random_cj3_5 = runiform()
. generate random_cj4_5 = runiform()
. generate random_cj5_5 = runiform()
. generate random_cj6_5 = runiform()
. 
. sort random_cj1_5
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_5
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_5
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_5
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_5
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_5
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_5 = rnormal(10,8.5)
. generate random_out2_5 = rnormal(10,8.5)
. generate random_out3_5 = rnormal(10,8.5)
. generate random_out4_5 = rnormal(10,8.5)
. generate random_out5_5 = rnormal(10,8.5)
. generate random_out6_5 = rnormal(10,8.5)
. 
. gen grant1_5=random_out1_5/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_5=random_out1_5/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_5=random_out2_5/5+0.31 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_5=random_out2_5/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_5=random_out3_5/5+0.42 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_5=random_out3_5/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_5=random_out4_5/5+0.21 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_5=random_out4_5/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_5=random_out5_5/5+0.13 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_5=random_out5_5/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_5=random_out6_5/5+0.22 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_5=random_out6_5/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_5=random_out1_5+3.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_5=random_out1_5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_5=random_out2_5+2.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_5=random_out2_5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_5=random_out3_5+4.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_5=random_out4_5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_5=random_out4_5+1.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_5=random_out4_5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_5=random_out1+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_5=random_out1 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_5=random_out1+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_5=random_out1 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_5=(overhead1_5+overhead2_5+overhead3_5+overhead4_5+overhead5_5+overhead6_5)/6
. replace overhead_5=0 if overhead_5<0
{txt}(3 real changes made)
{com}. gen grant_5=(grant1_5+grant2_5+grant3_5+grant4_5+grant5_5+grant6_5)/6
. replace grant_5=0 if grant_5<0
{txt}(1 real change made)
{com}. drop overhead1_5 overhead2_5 overhead3_5 overhead4_5 overhead5_5 overhead6_5
. drop grant1_5 grant2_5 grant3_5 grant4_5 grant5_5 grant6_5
. drop random_out1_5
. drop random_cj1_5 random_cj2_5 random_cj3_5 random_cj4_5 random_cj5_5 random_cj6_5
. 
. rename element1 element1_5
{res}{com}. rename element2 element2_5
{res}{com}. rename element3 element3_5
{res}{com}. rename element4 element4_5
{res}{com}. rename element5 element5_5
{res}{com}. rename element6 element6_5
{res}{com}. {c )-}
{txt}
{com}. 
. // 6th iteration
. {c -(} 
. 
. generate random_cj1_6 = runiform()
. generate random_cj2_6 = runiform()
. generate random_cj3_6 = runiform()
. generate random_cj4_6 = runiform()
. generate random_cj5_6 = runiform()
. generate random_cj6_6 = runiform()
. 
. sort random_cj1_6
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_6
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_6
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_6
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_6
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_6
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_6 = rnormal(10,8.5)
. generate random_out2_6 = rnormal(10,8.5)
. generate random_out3_6 = rnormal(10,8.5)
. generate random_out4_6 = rnormal(10,8.5)
. generate random_out5_6 = rnormal(10,8.5)
. generate random_out6_6 = rnormal(10,8.5)
. 
. gen grant1_6=random_out1_6/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_6=random_out1_6/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_6=random_out2_6/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_6=random_out2_6/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_6=random_out3_6/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_6=random_out3_6/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_6=random_out4_6/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_6=random_out4_6/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_6=random_out5_6/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_6=random_out5_6/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_6=random_out5_6/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_6=random_out5_6/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_6=random_out1_6+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_6=random_out1_6 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_6=random_out2_6+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_6=random_out2_6 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_6=random_out3_6+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_6=random_out3_6 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_6=random_out4_6+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_6=random_out4_6 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_6=random_out5_6+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_6=random_out5_6 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_6=random_out5_6+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_6=random_out6_6 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_6=(overhead1_6+overhead2_6+overhead3_6+overhead4_6+overhead5_6+overhead6_6)/5
. replace overhead_6=0 if overhead_6<0
{txt}(1 real change made)
{com}. gen grant_6=(grant1_6+grant2_6+grant3_6+grant4_6+grant5_6+grant6_6)/5
. replace grant_6=0 if grant_6<0
{txt}(2 real changes made)
{com}. drop overhead1_6 overhead2_6 overhead3_6 overhead4_6 overhead5_6 overhead6_6
. drop grant1_6 grant2_6 grant3_6 grant4_6 grant5_6 grant6_6
. drop random_out1_6
. drop random_cj1_6 random_cj2_6 random_cj3_6 random_cj4_6 random_cj5_6 random_cj6_6
. 
. rename element1 element1_6
{res}{com}. rename element2 element2_6
{res}{com}. rename element3 element3_6
{res}{com}. rename element4 element4_6
{res}{com}. rename element5 element5_6
{res}{com}. rename element6 element6_6
{res}{com}. {c )-}
{txt}
{com}. 
. // 7th iteration
. {c -(} 
. 
. generate random_cj1_7 = runiform()
. generate random_cj2_7 = runiform()
. generate random_cj3_7 = runiform()
. generate random_cj4_7 = runiform()
. generate random_cj5_7 = runiform()
. generate random_cj6_7 = runiform()
. 
. sort random_cj1_7
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_7
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_7
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_7
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_7
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_7
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_7 = rnormal(10,8.5)
. generate random_out2_7 = rnormal(10,8.5)
. generate random_out3_7 = rnormal(10,8.5)
. generate random_out4_7 = rnormal(10,8.5)
. generate random_out5_7 = rnormal(10,8.5)
. generate random_out6_7 = rnormal(10,8.5)
. 
. gen grant1_7=random_out1_7/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_7=random_out1_7/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_7=random_out2_7/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_7=random_out2_7/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_7=random_out3_7/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_7=random_out3_7/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_7=random_out4_7/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_7=random_out4_7/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_7=random_out5_7/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_7=random_out5_7/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_7=random_out5_7/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_7=random_out5_7/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_7=random_out1_7+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_7=random_out1_7 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_7=random_out2_7+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_7=random_out2_7 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_7=random_out3_7+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_7=random_out3_7 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_7=random_out4_7+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_7=random_out4_7 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_7=random_out5_7+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_7=random_out5_7 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_7=random_out5_7+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_7=random_out6_7 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_7=(overhead1_7+overhead2_7+overhead3_7+overhead4_7+overhead5_7+overhead6_7)/5
. replace overhead_7=0 if overhead_7<0
{txt}(2 real changes made)
{com}. gen grant_7=(grant1_7+grant2_7+grant3_7+grant4_7+grant5_7+grant6_7)/5
. replace grant_7=0 if grant_7<0
{txt}(3 real changes made)
{com}. drop overhead1_7 overhead2_7 overhead3_7 overhead4_7 overhead5_7 overhead6_7
. drop grant1_7 grant2_7 grant3_7 grant4_7 grant5_7 grant6_7
. drop random_out1_7
. drop random_cj1_7 random_cj2_7 random_cj3_7 random_cj4_7 random_cj5_7 random_cj6_7
. 
. rename element1 element1_7
{res}{com}. rename element2 element2_7
{res}{com}. rename element3 element3_7
{res}{com}. rename element4 element4_7
{res}{com}. rename element5 element5_7
{res}{com}. rename element6 element6_7
{res}{com}. 
. {c )-}
{txt}
{com}. 
. // 8th iteration
. {c -(} 
. 
. generate random_cj1_8 = runiform()
. generate random_cj2_8 = runiform()
. generate random_cj3_8 = runiform()
. generate random_cj4_8 = runiform()
. generate random_cj5_8 = runiform()
. generate random_cj6_8 = runiform()
. 
. sort random_cj1_8
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_8
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_8
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_8
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_8
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_8
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_8 = rnormal(10,8.5)
. generate random_out2_8 = rnormal(10,8.5)
. generate random_out3_8 = rnormal(10,8.5)
. generate random_out4_8 = rnormal(10,8.5)
. generate random_out5_8 = rnormal(10,8.5)
. generate random_out6_8 = rnormal(10,8.5)
. 
. gen grant1_8=random_out1_8/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_8=random_out1_8/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_8=random_out2_8/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_8=random_out2_8/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_8=random_out3_8/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_8=random_out3_8/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_8=random_out4_8/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_8=random_out4_8/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_8=random_out5_8/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_8=random_out5_8/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_8=random_out5_8/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_8=random_out5_8/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_8=random_out1_8+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_8=random_out1_8 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_8=random_out2_8+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_8=random_out2_8 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_8=random_out3_8+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_8=random_out3_8 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_8=random_out4_8+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_8=random_out4_8 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_8=random_out5_8+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_8=random_out5_8 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_8=random_out5_8+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_8=random_out6_8 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_8=(overhead1_8+overhead2_8+overhead3_8+overhead4_8+overhead5_8+overhead6_8)/5
. replace overhead_8=0 if overhead_8<0
{txt}(3 real changes made)
{com}. gen grant_8=(grant1_8+grant2_8+grant3_8+grant4_8+grant5_8+grant6_8)/5
. replace grant_8=0 if grant_8<0
{txt}(4 real changes made)
{com}. drop overhead1_8 overhead2_8 overhead3_8 overhead4_8 overhead5_8 overhead6_8
. drop grant1_8 grant2_8 grant3_8 grant4_8 grant5_8 grant6_8
. drop random_out1_8
. drop random_cj1_8 random_cj2_8 random_cj3_8 random_cj4_8 random_cj5_8 random_cj6_8
. 
. rename element1 element1_8
{res}{com}. rename element2 element2_8
{res}{com}. rename element3 element3_8
{res}{com}. rename element4 element4_8
{res}{com}. rename element5 element5_8
{res}{com}. rename element6 element6_8
{res}{com}. {c )-}
{txt}
{com}. 
. // 9th iteration
. {c -(} 
. 
. generate random_cj1_9 = runiform()
. generate random_cj2_9 = runiform()
. generate random_cj3_9 = runiform()
. generate random_cj4_9 = runiform()
. generate random_cj5_9 = runiform()
. generate random_cj6_9 = runiform()
. 
. sort random_cj1_9
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_9
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_9
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_9
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_9
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_9
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_9 = rnormal(10,8.5)
. generate random_out2_9 = rnormal(10,8.5)
. generate random_out3_9 = rnormal(10,8.5)
. generate random_out4_9 = rnormal(10,8.5)
. generate random_out5_9 = rnormal(10,8.5)
. generate random_out6_9 = rnormal(10,8.5)
. 
. gen grant1_9=random_out1_9/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_9=random_out1_9/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_9=random_out2_9/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_9=random_out2_9/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_9=random_out3_9/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_9=random_out3_9/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_9=random_out4_9/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_9=random_out4_9/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_9=random_out5_9/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_9=random_out5_9/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_9=random_out5_9/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_9=random_out5_9/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_9=random_out1_9+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_9=random_out1_9 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_9=random_out2_9+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_9=random_out2_9 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_9=random_out3_9+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_9=random_out3_9 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_9=random_out4_9+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_9=random_out4_9 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_9=random_out5_9+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_9=random_out5_9 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_9=random_out5_9+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_9=random_out6_9 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_9=(overhead1_9+overhead2_9+overhead3_9+overhead4_9+overhead5_9+overhead6_9)/5
. replace overhead_9=0 if overhead_9<0
{txt}(1 real change made)
{com}. gen grant_9=(grant1_9+grant2_9+grant3_9+grant4_9+grant5_9+grant6_9)/5
. replace grant_9=0 if grant_9<0
{txt}(4 real changes made)
{com}. drop overhead1_9 overhead2_9 overhead3_9 overhead4_9 overhead5_9 overhead6_9
. drop grant1_9 grant2_9 grant3_9 grant4_9 grant5_9 grant6_9
. drop random_out1_9
. drop random_cj1_9 random_cj2_9 random_cj3_9 random_cj4_9 random_cj5_9 random_cj6_9
. 
. rename element1 element1_9
{res}{com}. rename element2 element2_9
{res}{com}. rename element3 element3_9
{res}{com}. rename element4 element4_9
{res}{com}. rename element5 element5_9
{res}{com}. rename element6 element6_9
{res}{com}. {c )-}
{txt}
{com}. 
. // 10th iteration
. {c -(} 
. 
. generate random_cj1_10 = runiform()
. generate random_cj2_10 = runiform()
. generate random_cj3_10 = runiform()
. generate random_cj4_10 = runiform()
. generate random_cj5_10 = runiform()
. generate random_cj6_10 = runiform()
. 
. sort random_cj1_10
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_10
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_10
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_10
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_10
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_10
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_10 = rnormal(10,8.5)
. generate random_out2_10 = rnormal(10,8.5)
. generate random_out3_10 = rnormal(10,8.5)
. generate random_out4_10 = rnormal(10,8.5)
. generate random_out5_10 = rnormal(10,8.5)
. generate random_out6_10 = rnormal(10,8.5)
. 
. gen grant1_10=random_out1_10/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_10=random_out1_10/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_10=random_out2_10/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_10=random_out2_10/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_10=random_out3_10/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_10=random_out3_10/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_10=random_out4_10/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_10=random_out4_10/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_10=random_out5_10/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_10=random_out5_10/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_10=random_out5_10/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_10=random_out5_10/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_10=random_out1_10+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_10=random_out1_10 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_10=random_out2_10+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_10=random_out2_10 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_10=random_out3_10+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_10=random_out3_10 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_10=random_out4_10+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_10=random_out4_10 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_10=random_out5_10+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_10=random_out5_10 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_10=random_out5_10+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_10=random_out6_10 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_10=(overhead1_10+overhead2_10+overhead3_10+overhead4_10+overhead5_10+overhead6_10)/5
. replace overhead_10=0 if overhead_10<0
{txt}(4 real changes made)
{com}. gen grant_10=(grant1_10+grant2_10+grant3_10+grant4_10+grant5_10+grant6_10)/5
. replace grant_10=0 if grant_10<0
{txt}(5 real changes made)
{com}. drop overhead1_10 overhead2_10 overhead3_10 overhead4_10 overhead5_10 overhead6_10
. drop grant1_10 grant2_10 grant3_10 grant4_10 grant5_10 grant6_10
. drop random_out1_10
. drop random_cj1_10 random_cj2_10 random_cj3_10 random_cj4_10 random_cj5_10 random_cj6_10
. 
. rename element1 element1_10
{res}{com}. rename element2 element2_10
{res}{com}. rename element3 element3_10
{res}{com}. rename element4 element4_10
{res}{com}. rename element5 element5_10
{res}{com}. rename element6 element6_10
{res}{com}. {c )-}
{txt}
{com}. 
. // 11th iteration
. {c -(} 
. 
. generate random_cj1_11 = runiform()
. generate random_cj2_11 = runiform()
. generate random_cj3_11 = runiform()
. generate random_cj4_11 = runiform()
. generate random_cj5_11 = runiform()
. generate random_cj6_11 = runiform()
. 
. sort random_cj1_11
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_11
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_11
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_11
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_11
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_11
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_11 = rnormal(10,8.5)
. generate random_out2_11 = rnormal(10,8.5)
. generate random_out3_11 = rnormal(10,8.5)
. generate random_out4_11 = rnormal(10,8.5)
. generate random_out5_11 = rnormal(10,8.5)
. generate random_out6_11 = rnormal(10,8.5)
. 
. gen grant1_11=random_out1_11/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_11=random_out1_11/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_11=random_out2_11/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_11=random_out2_11/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_11=random_out3_11/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_11=random_out3_11/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_11=random_out4_11/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_11=random_out4_11/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_11=random_out5_11/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_11=random_out5_11/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_11=random_out5_11/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_11=random_out5_11/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_11=random_out1_11+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_11=random_out1_11 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_11=random_out2_11+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_11=random_out2_11 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_11=random_out3_11+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_11=random_out3_11 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_11=random_out4_11+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_11=random_out4_11 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_11=random_out5_11+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_11=random_out5_11 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_11=random_out5_11+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_11=random_out6_11 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_11=(overhead1_11+overhead2_11+overhead3_11+overhead4_11+overhead5_11+overhead6_11)/5
. replace overhead_11=0 if overhead_11<0
{txt}(0 real changes made)
{com}. gen grant_11=(grant1_11+grant2_11+grant3_11+grant4_11+grant5_11+grant6_11)/5
. replace grant_11=0 if grant_11<0
{txt}(0 real changes made)
{com}. drop overhead1_11 overhead2_11 overhead3_11 overhead4_11 overhead5_11 overhead6_11
. drop grant1_11 grant2_11 grant3_11 grant4_11 grant5_11 grant6_11
. drop random_out1_11
. drop random_cj1_11 random_cj2_11 random_cj3_11 random_cj4_11 random_cj5_11 random_cj6_11
. 
. rename element1 element1_11
{res}{com}. rename element2 element2_11
{res}{com}. rename element3 element3_11
{res}{com}. rename element4 element4_11
{res}{com}. rename element5 element5_11
{res}{com}. rename element6 element6_11
{res}{com}. {c )-}
{txt}
{com}. 
. // 12th iteration
. {c -(} 
. 
. generate random_cj1_12 = runiform()
. generate random_cj2_12 = runiform()
. generate random_cj3_12 = runiform()
. generate random_cj4_12 = runiform()
. generate random_cj5_12 = runiform()
. generate random_cj6_12 = runiform()
. 
. sort random_cj1_12
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_12
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_12
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_12
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_12
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_12
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_12 = rnormal(10,8.5)
. generate random_out2_12 = rnormal(10,8.5)
. generate random_out3_12 = rnormal(10,8.5)
. generate random_out4_12 = rnormal(10,8.5)
. generate random_out5_12 = rnormal(10,8.5)
. generate random_out6_12 = rnormal(10,8.5)
. 
. gen grant1_12=random_out1_12/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_12=random_out1_12/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_12=random_out2_12/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_12=random_out2_12/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_12=random_out3_12/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_12=random_out3_12/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_12=random_out4_12/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_12=random_out4_12/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_12=random_out5_12/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_12=random_out5_12/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_12=random_out5_12/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_12=random_out5_12/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_12=random_out1_12+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_12=random_out1_12 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_12=random_out2_12+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_12=random_out2_12 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_12=random_out3_12+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_12=random_out3_12 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_12=random_out4_12+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_12=random_out4_12 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_12=random_out5_12+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_12=random_out5_12 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_12=random_out5_12+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_12=random_out6_12 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_12=(overhead1_12+overhead2_12+overhead3_12+overhead4_12+overhead5_12+overhead6_12)/5
. replace overhead_12=0 if overhead_12<0
{txt}(0 real changes made)
{com}. gen grant_12=(grant1_12+grant2_12+grant3_12+grant4_12+grant5_12+grant6_12)/5
. replace grant_12=0 if grant_12<0
{txt}(1 real change made)
{com}. drop overhead1_12 overhead2_12 overhead3_12 overhead4_12 overhead5_12 overhead6_12
. drop grant1_12 grant2_12 grant3_12 grant4_12 grant5_12 grant6_12
. drop random_out1_12
. drop random_cj1_12 random_cj2_12 random_cj3_12 random_cj4_12 random_cj5_12 random_cj6_12
. 
. rename element1 element1_12
{res}{com}. rename element2 element2_12
{res}{com}. rename element3 element3_12
{res}{com}. rename element4 element4_12
{res}{com}. rename element5 element5_12
{res}{com}. rename element6 element6_12
{res}{com}. {c )-}
{txt}
{com}. 
. // 13th iteration
. {c -(} 
. 
. generate random_cj1_13 = runiform()
. generate random_cj2_13 = runiform()
. generate random_cj3_13 = runiform()
. generate random_cj4_13 = runiform()
. generate random_cj5_13 = runiform()
. generate random_cj6_13 = runiform()
. 
. sort random_cj1_13
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_13
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_13
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_13
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_13
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_13
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_13 = rnormal(10,8.5)
. generate random_out2_13 = rnormal(10,8.5)
. generate random_out3_13 = rnormal(10,8.5)
. generate random_out4_13 = rnormal(10,8.5)
. generate random_out5_13 = rnormal(10,8.5)
. generate random_out6_13 = rnormal(10,8.5)
. 
. gen grant1_13=random_out1_13/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_13=random_out1_13/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_13=random_out2_13/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_13=random_out2_13/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_13=random_out3_13/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_13=random_out3_13/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_13=random_out4_13/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_13=random_out4_13/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_13=random_out5_13/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_13=random_out5_13/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_13=random_out5_13/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_13=random_out5_13/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_13=random_out1_13+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_13=random_out1_13 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_13=random_out2_13+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_13=random_out2_13 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_13=random_out3_13+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_13=random_out3_13 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_13=random_out4_13+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_13=random_out4_13 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_13=random_out5_13+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_13=random_out5_13 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_13=random_out5_13+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_13=random_out6_13 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_13=(overhead1_13+overhead2_13+overhead3_13+overhead4_13+overhead5_13+overhead6_13)/5
. replace overhead_13=0 if overhead_13<0
{txt}(2 real changes made)
{com}. gen grant_13=(grant1_13+grant2_13+grant3_13+grant4_13+grant5_13+grant6_13)/5
. replace grant_13=0 if grant_13<0
{txt}(3 real changes made)
{com}. drop overhead1_13 overhead2_13 overhead3_13 overhead4_13 overhead5_13 overhead6_13
. drop grant1_13 grant2_13 grant3_13 grant4_13 grant5_13 grant6_13
. drop random_out1_13
. drop random_cj1_13 random_cj2_13 random_cj3_13 random_cj4_13 random_cj5_13 random_cj6_13
. 
. rename element1 element1_13
{res}{com}. rename element2 element2_13
{res}{com}. rename element3 element3_13
{res}{com}. rename element4 element4_13
{res}{com}. rename element5 element5_13
{res}{com}. rename element6 element6_13
{res}{com}.         
. {c )-}
{txt}
{com}. 
. // 14th Iteration 
. {c -(} 
. 
. generate random_cj1_14 = runiform()
. generate random_cj2_14 = runiform()
. generate random_cj3_14 = runiform()
. generate random_cj4_14 = runiform()
. generate random_cj5_14 = runiform()
. generate random_cj6_14 = runiform()
. 
. sort random_cj1_14
. gen element1 = ceil(2 * _n/_N)
. 
. sort random_cj2_14
. gen element2 = ceil(2 * _n/_N)
. 
. sort random_cj3_14
. gen element3 = ceil(2 * _n/_N)
. 
. sort random_cj4_14
. gen element4 = ceil(2 * _n/_N)
. 
. sort random_cj5_14
. gen element5 = ceil(2 * _n/_N)
. 
. sort random_cj6_14
. gen element6 = ceil(2 * _n/_N)
. 
. generate random_out1_14 = rnormal(10,8.5)
. generate random_out2_14 = rnormal(10,8.5)
. generate random_out3_14 = rnormal(10,8.5)
. generate random_out4_14 = rnormal(10,8.5)
. generate random_out5_14 = rnormal(10,8.5)
. generate random_out6_14 = rnormal(10,8.5)
. 
. gen grant1_14=random_out1_14/5+0.15 if element1==1
{txt}(217 missing values generated)
{com}. replace grant1_14=random_out1_14/5 if element1==2
{txt}(217 real changes made)
{com}. 
. gen grant2_14=random_out2_14/5+0.11 if element2==1
{txt}(217 missing values generated)
{com}. replace grant2_14=random_out2_14/5 if element2==2
{txt}(217 real changes made)
{com}. 
. gen grant3_14=random_out3_14/5+0.22 if element3==1
{txt}(217 missing values generated)
{com}. replace grant3_14=random_out3_14/5 if element3==2
{txt}(217 real changes made)
{com}. 
. gen grant4_14=random_out4_14/5+0.11 if element4==1
{txt}(217 missing values generated)
{com}. replace grant4_14=random_out4_14/5 if element4==2
{txt}(217 real changes made)
{com}. 
. gen grant5_14=random_out5_14/5+0.08 if element5==1
{txt}(217 missing values generated)
{com}. replace grant5_14=random_out5_14/5 if element5==2
{txt}(217 real changes made)
{com}. 
. gen grant6_14=random_out5_14/5+0.18 if element6==1
{txt}(217 missing values generated)
{com}. replace grant6_14=random_out5_14/5 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead1_14=random_out1_14+1.7 if element1==1
{txt}(217 missing values generated)
{com}. replace overhead1_14=random_out1_14 if element1==2
{txt}(217 real changes made)
{com}. 
. gen overhead2_14=random_out2_14+0.6 if element2==1
{txt}(217 missing values generated)
{com}. replace overhead2_14=random_out2_14 if element2==2
{txt}(217 real changes made)
{com}. 
. gen overhead3_14=random_out3_14+1.6 if element3==1
{txt}(217 missing values generated)
{com}. replace overhead3_14=random_out3_14 if element3==2
{txt}(217 real changes made)
{com}. 
. gen overhead4_14=random_out4_14+0.2 if element4==1
{txt}(217 missing values generated)
{com}. replace overhead4_14=random_out4_14 if element4==2
{txt}(217 real changes made)
{com}. 
. gen overhead5_14=random_out5_14+0.3 if element5==1
{txt}(217 missing values generated)
{com}. replace overhead5_14=random_out5_14 if element5==2
{txt}(217 real changes made)
{com}. 
. gen overhead6_14=random_out5_14+2.3 if element6==1
{txt}(217 missing values generated)
{com}. replace overhead6_14=random_out6_14 if element6==2
{txt}(217 real changes made)
{com}. 
. gen overhead_14=(overhead1_14+overhead2_14+overhead3_14+overhead4_14+overhead5_14+overhead6_14)/5
. replace overhead_14=0 if overhead_14<0
{txt}(0 real changes made)
{com}. gen grant_14=(grant1_14+grant2_14+grant3_14+grant4_14+grant5_14+grant6_14)/5
. replace grant_14=0 if grant_14<0
{txt}(5 real changes made)
{com}. drop overhead1_14 overhead2_14 overhead3_14 overhead4_14 overhead5_14 overhead6_14
. drop grant1_14 grant2_14 grant3_14 grant4_14 grant5_14 grant6_14
. drop random_out1_14
. drop random_cj1_14 random_cj2_14 random_cj3_14 random_cj4_14 random_cj5_14 random_cj6_14
. 
. rename element1 element1_14
{res}{com}. rename element2 element2_14
{res}{com}. rename element3 element3_14
{res}{com}. rename element4 element4_14
{res}{com}. rename element5 element5_14
{res}{com}. rename element6 element6_14
{res}{com}. 
. {c )-}
{txt}
{com}. 
. * creating final dataset with 6062 observations (433 respondents * 7 tasks * 2 profiles)
. 
. keep id IO group element* overhead_* grant_*
{txt}
{com}. 
. reshape long element1_ element2_ element3_ element4_ element5_ element6_ overhead_ grant_, i(id) j(profile)
{txt}(note: j = 1 2 3 4 5 6 7 8 9 10 11 12 13 14)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}     433   {txt}->{res}    6062
{txt}Number of variables            {res}     115   {txt}->{res}      12
{txt}j variable (14 values)                    ->   {res}profile
{txt}xij variables:
  {res}element1_1 element1_2 ... element1_14   {txt}->   {res}element1_
  element2_1 element2_2 ... element2_14   {txt}->   {res}element2_
  element3_1 element3_2 ... element3_14   {txt}->   {res}element3_
  element4_1 element4_2 ... element4_14   {txt}->   {res}element4_
  element5_1 element5_2 ... element5_14   {txt}->   {res}element5_
  element6_1 element6_2 ... element6_14   {txt}->   {res}element6_
  overhead_1 overhead_2 ... overhead_14   {txt}->   {res}overhead_
           grant_1 grant_2 ... grant_14   {txt}->   {res}grant_
{txt}{hline 77}

{com}. 
. replace element1_=element1_-1
{txt}(6,062 real changes made)

{com}. replace element2_=element2_-1
{txt}(6,062 real changes made)

{com}. replace element3_=element3_-1
{txt}(6,062 real changes made)

{com}. replace element4_=element4_-1
{txt}(6,062 real changes made)

{com}. replace element5_=element5_-1
{txt}(6,062 real changes made)

{com}. replace element6_=element6_-1
{txt}(6,062 real changes made)

{com}. replace overhead_=overhead_-0.9
{txt}(6,062 real changes made)

{com}. replace grant_=grant_-0.5
{txt}(6,062 real changes made)

{com}. 
. rename element1_ em_country
{res}{txt}
{com}. rename element2_ em_sector
{res}{txt}
{com}. rename element3_ em_project
{res}{txt}
{com}. rename element4_ speed
{res}{txt}
{com}. rename element5_ donor
{res}{txt}
{com}. rename element6_ em_workarea
{res}{txt}
{com}. 
. gen country_staff=1 if group==1
{txt}(4,550 missing values generated)

{com}. replace country_staff=1 if group==2
{txt}(1,512 real changes made)

{com}. gen sector_staff=1 if group==3
{txt}(4,550 missing values generated)

{com}. gen other_staff=1 if group==4
{txt}(4,536 missing values generated)

{com}. gen weight=1
{txt}
{com}. 
. label define varlab1 1 "Yes" 0 "No"
{txt}
{com}. label define varlab2 1 "1 year" 0 "3 years"
{txt}
{com}. label define varlab3 1 "Private foundation" 0 "Member state"
{txt}
{com}. 
. label value em_country varlab1
{txt}
{com}. label value em_sector varlab1
{txt}
{com}. label value em_project varlab1
{txt}
{com}. label value em_workarea varlab1
{txt}
{com}. label value speed varlab2
{txt}
{com}. label value donor varlab3
{txt}
{com}. 
. *-------------------*
. * Regression models *
. *-------------------*
. 
. * estimating models
. reg overhead_  i.em_country i.em_sector i.em_project i.em_workarea i.speed i.donor i.IO [pw = weight], cluster(id)
{txt}(sum of wgt is 6,062)

Linear regression                               Number of obs     = {res}     6,062
                                                {txt}F(11, 432)        =  {res}     4.21
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0075
                                                {txt}Root MSE          =    {res} 4.2932

{txt}{ralign 85:(Std. Err. adjusted for {res:433} clusters in id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          overhead_{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}em_country {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.4244289{col 33}{space 2} .1054792{col 44}{space 1}   -4.02{col 53}{space 3}0.000{col 61}{space 4}-.6317452{col 74}{space 3}-.2171127
{txt}{space 19} {c |}
{space 10}em_sector {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.1165112{col 33}{space 2} .1100414{col 44}{space 1}   -1.06{col 53}{space 3}0.290{col 61}{space 4}-.3327944{col 74}{space 3} .0997719
{txt}{space 19} {c |}
{space 9}em_project {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.5011406{col 33}{space 2} .1105576{col 44}{space 1}   -4.53{col 53}{space 3}0.000{col 61}{space 4}-.7184382{col 74}{space 3} -.283843
{txt}{space 19} {c |}
{space 8}em_workarea {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0380058{col 33}{space 2}  .105203{col 44}{space 1}   -0.36{col 53}{space 3}0.718{col 61}{space 4}-.2447793{col 74}{space 3} .1687677
{txt}{space 19} {c |}
{space 14}speed {c |}
{space 12}1 year  {c |}{col 21}{res}{space 2}-.1747375{col 33}{space 2}  .113336{col 44}{space 1}   -1.54{col 53}{space 3}0.124{col 61}{space 4} -.397496{col 74}{space 3}  .048021
{txt}{space 19} {c |}
{space 14}donor {c |}
Private foundation  {c |}{col 21}{res}{space 2}-.1699095{col 33}{space 2} .1082602{col 44}{space 1}   -1.57{col 53}{space 3}0.117{col 61}{space 4}-.3826916{col 74}{space 3} .0428727
{txt}{space 19} {c |}
{space 17}IO {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0435017{col 33}{space 2} .2030508{col 44}{space 1}   -0.21{col 53}{space 3}0.830{col 61}{space 4}-.4425921{col 74}{space 3} .3555888
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0319633{col 33}{space 2} .1863361{col 44}{space 1}    0.17{col 53}{space 3}0.864{col 61}{space 4}-.3342749{col 74}{space 3} .3982014
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0103093{col 33}{space 2} .2232274{col 44}{space 1}    0.05{col 53}{space 3}0.963{col 61}{space 4}-.4284375{col 74}{space 3} .4490561
{txt}{space 17}5  {c |}{col 21}{res}{space 2} .1316578{col 33}{space 2} .1705956{col 44}{space 1}    0.77{col 53}{space 3}0.441{col 61}{space 4}-.2036427{col 74}{space 3} .4669584
{txt}{space 17}6  {c |}{col 21}{res}{space 2} .2611053{col 33}{space 2} .1503079{col 44}{space 1}    1.74{col 53}{space 3}0.083{col 61}{space 4}-.0343205{col 74}{space 3} .5565311
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 11.94251{col 33}{space 2} .1686582{col 44}{space 1}   70.81{col 53}{space 3}0.000{col 61}{space 4} 11.61102{col 74}{space 3} 12.27401
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins em_country em_sector em_project em_workarea speed donor IO , atmeans post
{res}
{txt}Adjusted predictions{col 49}Number of obs{col 67}= {res}     6,062
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:at}:{space 1}{res:{txt:0.em_country}{space 4}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_country}{space 4}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.em_sector}{space 5}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_sector}{space 5}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.em_project}{space 4}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_project}{space 4}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.em_worka~a}{space 4}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_worka~a}{space 4}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.speed}{space 9}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.speed}{space 9}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.donor}{space 9}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.donor}{space 9}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.IO}{space 12}{txt:=} {space 4}.182448 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:2.IO}{space 12}{txt:=} {space 3}.1154734 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:3.IO}{space 12}{txt:=} {space 3}.1408776 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:4.IO}{space 12}{txt:=} {space 3}.1039261 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:5.IO}{space 12}{txt:=} {space 3}.2055427 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:6.IO}{space 12}{txt:=} {space 3}.2517321 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33} Delta-method
{col 21}{c |}     Margin{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}em_country {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 11.53455{col 33}{space 2} .0751441{col 44}{space 1}  153.50{col 53}{space 3}0.000{col 61}{space 4} 11.38685{col 74}{space 3} 11.68224
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 11.11012{col 33}{space 2} .0771634{col 44}{space 1}  143.98{col 53}{space 3}0.000{col 61}{space 4} 10.95846{col 74}{space 3} 11.26178
{txt}{space 19} {c |}
{space 10}em_sector {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 11.38023{col 33}{space 2} .0764489{col 44}{space 1}  148.86{col 53}{space 3}0.000{col 61}{space 4} 11.22998{col 74}{space 3} 11.53049
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 11.26372{col 33}{space 2} .0790431{col 44}{space 1}  142.50{col 53}{space 3}0.000{col 61}{space 4} 11.10837{col 74}{space 3} 11.41908
{txt}{space 19} {c |}
{space 9}em_project {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 11.57299{col 33}{space 2} .0780573{col 44}{space 1}  148.26{col 53}{space 3}0.000{col 61}{space 4} 11.41957{col 74}{space 3} 11.72641
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 11.07185{col 33}{space 2} .0778283{col 44}{space 1}  142.26{col 53}{space 3}0.000{col 61}{space 4} 10.91888{col 74}{space 3} 11.22482
{txt}{space 19} {c |}
{space 8}em_workarea {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 11.34089{col 33}{space 2} .0788937{col 44}{space 1}  143.75{col 53}{space 3}0.000{col 61}{space 4} 11.18583{col 74}{space 3} 11.49595
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 11.30288{col 33}{space 2} .0731455{col 44}{space 1}  154.53{col 53}{space 3}0.000{col 61}{space 4} 11.15912{col 74}{space 3} 11.44665
{txt}{space 19} {c |}
{space 14}speed {c |}
{space 11}3 years  {c |}{col 21}{res}{space 2} 11.40941{col 33}{space 2} .0798388{col 44}{space 1}  142.91{col 53}{space 3}0.000{col 61}{space 4} 11.25249{col 74}{space 3} 11.56634
{txt}{space 12}1 year  {c |}{col 21}{res}{space 2} 11.23468{col 33}{space 2} .0780228{col 44}{space 1}  143.99{col 53}{space 3}0.000{col 61}{space 4} 11.08133{col 74}{space 3} 11.38803
{txt}{space 19} {c |}
{space 14}donor {c |}
{space 6}Member state  {c |}{col 21}{res}{space 2} 11.40699{col 33}{space 2}  .074937{col 44}{space 1}  152.22{col 53}{space 3}0.000{col 61}{space 4} 11.25971{col 74}{space 3} 11.55428
{txt}Private foundation  {c |}{col 21}{res}{space 2} 11.23709{col 33}{space 2} .0792569{col 44}{space 1}  141.78{col 53}{space 3}0.000{col 61}{space 4} 11.08131{col 74}{space 3} 11.39286
{txt}{space 19} {c |}
{space 17}IO {c |}
{space 17}1  {c |}{col 21}{res}{space 2}  11.2285{col 33}{space 2} .1100962{col 44}{space 1}  101.99{col 53}{space 3}0.000{col 61}{space 4} 11.01211{col 74}{space 3} 11.44489
{txt}{space 17}2  {c |}{col 21}{res}{space 2}   11.185{col 33}{space 2} .1704822{col 44}{space 1}   65.61{col 53}{space 3}0.000{col 61}{space 4} 10.84992{col 74}{space 3} 11.52008
{txt}{space 17}3  {c |}{col 21}{res}{space 2} 11.26047{col 33}{space 2} .1502377{col 44}{space 1}   74.95{col 53}{space 3}0.000{col 61}{space 4} 10.96518{col 74}{space 3} 11.55575
{txt}{space 17}4  {c |}{col 21}{res}{space 2} 11.23881{col 33}{space 2} .1938872{col 44}{space 1}   57.97{col 53}{space 3}0.000{col 61}{space 4} 10.85773{col 74}{space 3} 11.61989
{txt}{space 17}5  {c |}{col 21}{res}{space 2} 11.36016{col 33}{space 2} .1301733{col 44}{space 1}   87.27{col 53}{space 3}0.000{col 61}{space 4} 11.10431{col 74}{space 3} 11.61601
{txt}{space 17}6  {c |}{col 21}{res}{space 2} 11.48961{col 33}{space 2} .1023143{col 44}{space 1}  112.30{col 53}{space 3}0.000{col 61}{space 4} 11.28851{col 74}{space 3}  11.6907
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo overhead1
{txt}
{com}. 
. reg grant_  i.em_country i.em_sector i.em_project i.em_workarea i.speed i.donor i.IO, cluster(id)

{txt}Linear regression                               Number of obs     = {res}     6,062
                                                {txt}F(11, 432)        =  {res}     2.30
                                                {txt}Prob > F          = {res}    0.0097
                                                {txt}R-squared         = {res}    0.0041
                                                {txt}Root MSE          =    {res}  .8774

{txt}{ralign 85:(Std. Err. adjusted for {res:433} clusters in id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}             grant_{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}em_country {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0227903{col 33}{space 2} .0213225{col 44}{space 1}   -1.07{col 53}{space 3}0.286{col 61}{space 4}-.0646991{col 74}{space 3} .0191185
{txt}{space 19} {c |}
{space 10}em_sector {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0229345{col 33}{space 2} .0227291{col 44}{space 1}   -1.01{col 53}{space 3}0.314{col 61}{space 4}-.0676079{col 74}{space 3} .0217389
{txt}{space 19} {c |}
{space 9}em_project {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2}-.0665325{col 33}{space 2}  .022317{col 44}{space 1}   -2.98{col 53}{space 3}0.003{col 61}{space 4} -.110396{col 74}{space 3} -.022669
{txt}{space 19} {c |}
{space 8}em_workarea {c |}
{space 15}Yes  {c |}{col 21}{res}{space 2} .0371394{col 33}{space 2} .0211241{col 44}{space 1}    1.76{col 53}{space 3}0.079{col 61}{space 4}-.0043794{col 74}{space 3} .0786582
{txt}{space 19} {c |}
{space 14}speed {c |}
{space 12}1 year  {c |}{col 21}{res}{space 2}-.0371826{col 33}{space 2} .0229921{col 44}{space 1}   -1.62{col 53}{space 3}0.107{col 61}{space 4}-.0823729{col 74}{space 3} .0080077
{txt}{space 19} {c |}
{space 14}donor {c |}
Private foundation  {c |}{col 21}{res}{space 2}-.0436492{col 33}{space 2} .0218078{col 44}{space 1}   -2.00{col 53}{space 3}0.046{col 61}{space 4}-.0865117{col 74}{space 3}-.0007867
{txt}{space 19} {c |}
{space 17}IO {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0167131{col 33}{space 2} .0428795{col 44}{space 1}   -0.39{col 53}{space 3}0.697{col 61}{space 4}-.1009915{col 74}{space 3} .0675653
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0120263{col 33}{space 2} .0374767{col 44}{space 1}   -0.32{col 53}{space 3}0.748{col 61}{space 4}-.0856857{col 74}{space 3} .0616331
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0231474{col 33}{space 2} .0452923{col 44}{space 1}   -0.51{col 53}{space 3}0.610{col 61}{space 4}-.1121681{col 74}{space 3} .0658733
{txt}{space 17}5  {c |}{col 21}{res}{space 2} .0261187{col 33}{space 2} .0339629{col 44}{space 1}    0.77{col 53}{space 3}0.442{col 61}{space 4}-.0406344{col 74}{space 3} .0928719
{txt}{space 17}6  {c |}{col 21}{res}{space 2} .0455519{col 33}{space 2} .0311013{col 44}{space 1}    1.46{col 53}{space 3}0.144{col 61}{space 4}-.0155767{col 74}{space 3} .1066806
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 1.942145{col 33}{space 2}  .034076{col 44}{space 1}   56.99{col 53}{space 3}0.000{col 61}{space 4}  1.87517{col 74}{space 3}  2.00912
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins em_country em_sector em_project em_workarea speed donor IO , atmeans post
{res}
{txt}Adjusted predictions{col 49}Number of obs{col 67}= {res}     6,062
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:at}:{space 1}{res:{txt:0.em_country}{space 4}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_country}{space 4}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.em_sector}{space 5}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_sector}{space 5}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.em_project}{space 4}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_project}{space 4}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.em_worka~a}{space 4}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.em_worka~a}{space 4}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.speed}{space 9}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.speed}{space 9}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:0.donor}{space 9}{txt:=} {space 3}.4988453 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.donor}{space 9}{txt:=} {space 3}.5011547 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:1.IO}{space 12}{txt:=} {space 4}.182448 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:2.IO}{space 12}{txt:=} {space 3}.1154734 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:3.IO}{space 12}{txt:=} {space 3}.1408776 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:4.IO}{space 12}{txt:=} {space 3}.1039261 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:5.IO}{space 12}{txt:=} {space 3}.2055427 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:6.IO}{space 12}{txt:=} {space 3}.2517321 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33} Delta-method
{col 21}{c |}     Margin{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}em_country {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 1.886217{col 33}{space 2} .0153885{col 44}{space 1}  122.57{col 53}{space 3}0.000{col 61}{space 4} 1.855971{col 74}{space 3} 1.916463
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 1.863427{col 33}{space 2} .0156547{col 44}{space 1}  119.03{col 53}{space 3}0.000{col 61}{space 4} 1.832658{col 74}{space 3} 1.894196
{txt}{space 19} {c |}
{space 10}em_sector {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 1.886289{col 33}{space 2} .0160462{col 44}{space 1}  117.55{col 53}{space 3}0.000{col 61}{space 4} 1.854751{col 74}{space 3} 1.917828
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 1.863355{col 33}{space 2} .0159812{col 44}{space 1}  116.60{col 53}{space 3}0.000{col 61}{space 4} 1.831944{col 74}{space 3} 1.894766
{txt}{space 19} {c |}
{space 9}em_project {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 1.908139{col 33}{space 2} .0160885{col 44}{space 1}  118.60{col 53}{space 3}0.000{col 61}{space 4} 1.876517{col 74}{space 3}  1.93976
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 1.841606{col 33}{space 2} .0156457{col 44}{space 1}  117.71{col 53}{space 3}0.000{col 61}{space 4} 1.810855{col 74}{space 3} 1.872357
{txt}{space 19} {c |}
{space 8}em_workarea {c |}
{space 16}No  {c |}{col 21}{res}{space 2} 1.856183{col 33}{space 2} .0154499{col 44}{space 1}  120.14{col 53}{space 3}0.000{col 61}{space 4} 1.825817{col 74}{space 3} 1.886549
{txt}{space 15}Yes  {c |}{col 21}{res}{space 2} 1.893322{col 33}{space 2} .0154591{col 44}{space 1}  122.47{col 53}{space 3}0.000{col 61}{space 4} 1.862938{col 74}{space 3} 1.923707
{txt}{space 19} {c |}
{space 14}speed {c |}
{space 11}3 years  {c |}{col 21}{res}{space 2}  1.89343{col 33}{space 2} .0162121{col 44}{space 1}  116.79{col 53}{space 3}0.000{col 61}{space 4} 1.861565{col 74}{space 3} 1.925294
{txt}{space 12}1 year  {c |}{col 21}{res}{space 2} 1.856247{col 33}{space 2} .0160022{col 44}{space 1}  116.00{col 53}{space 3}0.000{col 61}{space 4} 1.824795{col 74}{space 3} 1.887699
{txt}{space 19} {c |}
{space 14}donor {c |}
{space 6}Member state  {c |}{col 21}{res}{space 2} 1.896671{col 33}{space 2} .0153194{col 44}{space 1}  123.81{col 53}{space 3}0.000{col 61}{space 4} 1.866561{col 74}{space 3} 1.926781
{txt}Private foundation  {c |}{col 21}{res}{space 2} 1.853021{col 33}{space 2} .0160506{col 44}{space 1}  115.45{col 53}{space 3}0.000{col 61}{space 4} 1.821475{col 74}{space 3} 1.884568
{txt}{space 19} {c |}
{space 17}IO {c |}
{space 17}1  {c |}{col 21}{res}{space 2}  1.86399{col 33}{space 2} .0221333{col 44}{space 1}   84.22{col 53}{space 3}0.000{col 61}{space 4} 1.820488{col 74}{space 3} 1.907492
{txt}{space 17}2  {c |}{col 21}{res}{space 2} 1.847277{col 33}{space 2}  .036718{col 44}{space 1}   50.31{col 53}{space 3}0.000{col 61}{space 4} 1.775109{col 74}{space 3} 1.919445
{txt}{space 17}3  {c |}{col 21}{res}{space 2} 1.851964{col 33}{space 2} .0302576{col 44}{space 1}   61.21{col 53}{space 3}0.000{col 61}{space 4} 1.792493{col 74}{space 3} 1.911434
{txt}{space 17}4  {c |}{col 21}{res}{space 2} 1.840843{col 33}{space 2} .0394391{col 44}{space 1}   46.68{col 53}{space 3}0.000{col 61}{space 4} 1.763326{col 74}{space 3} 1.918359
{txt}{space 17}5  {c |}{col 21}{res}{space 2} 1.890109{col 33}{space 2} .0257314{col 44}{space 1}   73.46{col 53}{space 3}0.000{col 61}{space 4} 1.839534{col 74}{space 3} 1.940683
{txt}{space 17}6  {c |}{col 21}{res}{space 2} 1.909542{col 33}{space 2} .0218565{col 44}{space 1}   87.37{col 53}{space 3}0.000{col 61}{space 4} 1.866584{col 74}{space 3}   1.9525
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo grant1
{txt}
{com}. 
. * creating figure 3
. coefplot overhead1 , xtitle(Marginal Means) scheme(plotplainblind)  drop(*IO) name(overhead1, replace) headings(0.em_country = "{c -(}bf:Earmarked to country{c )-}" 0.em_sector = "{c -(}bf:Earmarked to sector{c )-}" 0.em_project = "{c -(}bf:Earmarked to project{c )-}" 0.em_workarea = "{c -(}bf:Earmarked to workarea{c )-}" 0.speed = "{c -(}bf:Length{c )-}" 0.donor = "{c -(}bf:Donor{c )-}" ) xlabel(10.5(0.3)12)
{res}{txt}
{com}. 
. coefplot grant1 , xtitle(Marginal Means) scheme(plotplainblind)  drop(*IO) name(grant1, replace) headings(0.em_country = "{c -(}bf:Earmarked to country{c )-}" 0.em_sector = "{c -(}bf:Earmarked to sector{c )-}" 0.em_project = "{c -(}bf:Earmarked to project{c )-}" 0.em_workarea = "{c -(}bf:Earmarked to workarea{c )-}" 0.speed = "{c -(}bf:Length{c )-}" 0.donor = "{c -(}bf:Donor{c )-}" ) xlabel(1.7(0.1)2.0)
{res}{txt}
{com}. 
. graph combine overhead1 grant1, scheme(plotplainblind)
{res}{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/mirkoheinzel/Documents/Publications/Multi-bi/Survey/Survey_staff/JOP/1_submission/RR/CA/Replication/Heinzel_Reinsberg_Siauwijaya_23_JOP_log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}25 Oct 2023, 11:47:07
{txt}{.-}
{smcl}
{txt}{sf}{ul off}